const classes = require('../classes')
const db = new classes.Database({
  host: '47.101.172.203',
  user: 'root',
  password: 'l15649946229',
  database: 'brain_machine',
  waitForConnections: true,
  connectionLimit: 10,
  queueLimit: 0
});
module.exports = db;


/*
    使用案例
    async function queryUsers() {
        try {
            const rows = await db.query('SELECT * FROM users');
            console.log('Query results:', rows);
        } catch (err) {
            console.error('Failed to execute query:', err);
        } finally {
            await db.close();
        }
    }

    queryUsers();

*/